package projectEuler.net;

import junit.framework.TestCase;

public class Problem_002Test extends TestCase {
	public static void main(String args[]){
		junit.swingui.TestRunner.main(new String[]{"Test Problem 002"});
	}
	public Problem_002Test(String name){
		super(name);
	}
	public void testTen(){
		int sumEvenTerm = Problem_002.sumEvenTermOfFibonaci(10);
		assertEquals(10, sumEvenTerm);
	}
	public void testFifty(){
		int sumEvenTerm = Problem_002.sumEvenTermOfFibonaci(50);
		assertEquals(44, sumEvenTerm);
	}
	public void test2Hundred(){
		int sum = Problem_002.sumEvenTermOfFibonaci(200);
		assertEquals(188, sum);
	}
	public void test4Mil(){
		int sum = Problem_002.sumEvenTermOfFibonaci(4000000);
		assertEquals(sum, 4613732);
	}
}
